package dk.seqSite.exampleMain {	import dk.seqSite.SeqSiteInitOptions;		import dk.seqSite.SeqSiteBase;		import flash.display.Sprite;	import flash.display.StageAlign;	import flash.display.StageScaleMode;	import flash.events.Event;	import flash.net.URLLoader;	import flash.net.URLRequest;		/**	 * @author josef	 */	public class SiteRoot_ExampleMain extends Sprite {		private var _oSeqSite : SeqSiteBase;		private var _oURLLoader : URLLoader;		private var _xmlMainData : XML;		private var _xmlSiteTree : XML;		private var _xmlPageData : XML;		public function SiteRoot_ExampleMain() {						stage.align = StageAlign.TOP_LEFT;			stage.scaleMode = StageScaleMode.NO_SCALE;						loadData();		}
		
		private function loadData() : void {			_oURLLoader = new URLLoader();			_oURLLoader.addEventListener(Event.COMPLETE, onDataLoaded, false, 0, true);			_oURLLoader.load(new URLRequest('maindata.xml'));		}		private function onDataLoaded(event : Event) : void {			_xmlMainData = XML(_oURLLoader.data);						_xmlSiteTree = XML(_xmlMainData.sitetree);			_xmlPageData = XML(_xmlMainData.data.pages);						setupSeqSite();		}		private function setupSeqSite() : void {						var oOptions : SeqSiteInitOptions=new SeqSiteInitOptions();			oOptions.sDFPSeqSiteCoreURL="DFPSeqSiteCore.swf";						_oSeqSite = SeqSiteBase.get_oInstance();			_oSeqSite.initSystemByXML(this, _xmlSiteTree, oOptions);		}	}}